package com.notary.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 公证业务基本信息
 * </p>
 *
 * @author xujun
 * @since 2020-07-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_notary_business")
@ApiModel(value = "NotaryBusiness对象", description = "公证业务基本信息")
public class NotaryBusiness implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    @ApiModelProperty(value = "机构编码")
    private String deptId;

    @ApiModelProperty(value = "受理编号")
    private String acceptNo;

    @ApiModelProperty(value = "公证书编号")
    private String certificateNo;

    @ApiModelProperty(value = "当事人 填写申请公证的当事人 姓名或单位名称，多人 时以‘，’分割")
    private String dsr;

    @ApiModelProperty(value = "类别")
    private String lb;

    @ApiModelProperty(value = "类型")
    private String lx;

    @ApiModelProperty(value = "使用地")
    private String syd;

    @ApiModelProperty(value = "用途")
    private String yt;

    @ApiModelProperty(value = "公证事项（事务）")
    private String notaryItem;

    @ApiModelProperty(value = "译文")
    private String yw;

    @ApiModelProperty(value = "份数")
    private Integer fs;

    @ApiModelProperty(value = "副本发送 0 否 1 是")
    private String isCopy;

    @ApiModelProperty(value = "公益性服务 0 否 1 是")
    private String gyxfw;

    @ApiModelProperty(value = "承办公证员编码")
    private String cbgzybm;

    @ApiModelProperty(value = "受理时间")
    private Date slsj;

    @ApiModelProperty(value = "共同承办人编码 填写除主办公证员外的 其他公证员、公证员助 理姓名，多人时以‘，’分割")
    private String gtcbrbm;

    @ApiModelProperty(value = "公证服务费")
    private BigDecimal charge;

    @ApiModelProperty(value = "审批人编码")
    private String sprbm;

    @ApiModelProperty(value = "审批时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date spsj;

    @ApiModelProperty(value = "办结时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gjsj;

    @ApiModelProperty(value = "出具时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date cjsj;

    @ApiModelProperty(value = "办证状态")
    private String status;

    @ApiModelProperty(value = "归档时间")
    private String archiveDate;

    @ApiModelProperty(value = "乐观锁")
    private Integer revision;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


}
